﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpUiInterface.h"

namespace gcmp
{
    /// \brief 浮动面板里的内容部件基类
    class GCMP_UI_INTERFACE_EXPORT IWidget
    {
    public:
        /// \brief 析构器
        virtual ~IWidget();

    public:
        /// \brief 设置内容部件是否可用
        /// \param bEnable true-可用；false-不可用
        /// \return 无
        virtual void SetEnabled(bool bEnable) = 0;

        /// \brief 更新内部控件的状态
        virtual void UpdateStatus() = 0;
    };
}







